package java7;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 类型推断
 *
 * @author user
 */
public class J2 {

    public static void main(String[] args) {
        //老写法
        //Map<String, List<String>> anagrams = new HashMap<String, List<String>>();
        //新写法
        Map<String, List<String>> anagrams = new HashMap<>();

    }

}
